package core.actions;

import java.awt.Point;

import core.*;
import core.units.Unit;


public class SpawnDefaultUnit extends Action {
	
	public SpawnDefaultUnit(){
		super();
		name="Spawn_unit";
		imageName="iconTank1.png";
		nameChar='d';
		energyCost=150;
		value=180;
	}
	
	public void execute(){
		//Player master = PlayerIdHandler.getPlayer(masterId);
		main.units.add(new Unit(CustomUtil.pointOffset(master.getSpawnPoint(), 50), master));
		System.out.println("Unit spawned");
	}
}
